package com.example.arithmeticleetcode.learnArithmetic.set;

/**
 * @program: arithmetic-leetcode
 * @description:
 * @author: FangZhen
 * @create: 2020-10-20 17:07
 **/
public class ListSetTest {

    public static void main(String[] args) {
        Set<Integer> listSet = new ListSet<>();
        listSet.add(10);
        listSet.add(11);
        listSet.add(12);
        listSet.add(13);
        listSet.add(10);
        System.out.println("111111");
        listSet.tranversal(new Set.Visitor<Integer>() {
            @Override
            boolean visit(Integer element) {
                System.out.println(element);
                return false;
            }
        });
    }
}
